public class Solution {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.CreatTree();
        binaryTree.NodeSize(root);
        System.out.println("结点个数："+binaryTree.CountSize);
        System.out.println("结点个数："+binaryTree.NodeSize2(root));
        System.out.println("叶子结点个数："+binaryTree.getLeafNodeCount(root));
        binaryTree.getLeafNodeCount2(root);
        System.out.println("叶子结点个数："+binaryTree.LeafCount);
        System.out.println("第3层结点个数："+binaryTree.getLevelNodeCount(root,3));
        System.out.println("二叉树的高度："+binaryTree.getHeight(root));
    }
}
